gdk/gdkvulkancontext.c: Fix 32-bit Windows builds
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 5 Jun 2017 14:17:12 +0000 (22:17 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 5 Jun 2017 16:06:35 +0000 (00:06 +0800)
The callback function that is used by VkDebugReportCallbackCreateInfoEXT
is decorated with VKAPI_CALL (which is __stdcall on Windows).  This is
not detected on x64 Windows as __stdcall is not really meaningful on x64
Windows, and VKAPI_CALL expands to nothing on non-Windows.

As __stdcall functions are treated differently on 32-bit Windows, the
32-bit compiler does require that the function be declared as __stdcall
so that things will compile, link and run properly.

https://bugzilla.gnome.org/show_bug.cgi?id-773299

gdk/gdkvulkancontext.c

index e225f1478872a9a819b50d43f69e7404b8c86eec..32478d8bccb029adea01f8f37311ba32bdb2661f 100644 (file)
@@ -670,7 +670,7 @@ gdk_display_create_vulkan_device (GdkDisplay  *display,
   return FALSE;
 }
 
-static VkBool32
+static VkBool32 VKAPI_CALL
 gdk_vulkan_debug_report (VkDebugReportFlagsEXT      flags,
                          VkDebugReportObjectTypeEXT objectType,
                          uint64_t                   object,